package main

import (
	"fmt"
	"time"
)

// continue
func main() {
	fmt.Println("输入一个数字，打印所有被3整除的数字：")
	var num int
	fmt.Scanln(&num)
	test01(num)
}

func test01(stopN int) {

	var num int = 1
	for {
		if num == stopN {
			fmt.Println("num=", num, "stopN")
			break
		}

		if num%3 != 0 {
			num++
			continue
		}

		fmt.Printf("%d\t", num)
		time.Sleep(2 * time.Millisecond)
		num++

	}

}
